package appapi.dao;

import appapi.Request.record.SectReq;
import appapi.Vo.brider.ScetionNameAndIdVo;
import appapi.Vo.brider.SectionDetailVo;
import appapi.Vo.brider.SectionPageVo;
import appapi.entity.bridge.SectionEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author dhq
 * @version 1.0
 * @date 2023/9/8  18:15
 */
@Mapper
public interface SectionMapper extends BaseMapper<SectionEntity> {
    List<SectionPageVo> getSectionList(@Param("req") SectReq req) ;

    SectionDetailVo getSectionDetail(@Param("secId") Long secId);

    List<ScetionNameAndIdVo> getSecNameAndId(@Param("projId") Long projId);

    Integer updateByPrimaryKeySelective(SectionEntity sectionEntity);

    Integer selectSectNameCount(@Param("projId") Long projId,@Param("secId") Long secId,@Param("secName") String secName);

    Integer selectSectNoCount(@Param("projId") Long projId,@Param("secId") Long secId,@Param("secNo") String secNo);
}
